﻿using System.ComponentModel;
using System.Globalization;
using System.Windows.Forms;
using System.Collections.Generic;

using Elegant.Ui;
using PdfSharp.Pdf;

namespace iPdf
{
    class FontEmbeddingComboBox: Elegant.Ui.ComboBox
    {
        public FontEmbeddingComboBox()
        {
            DataSource = new PdfFontEmbedding[] 
            {
                PdfFontEmbedding.Automatic,
                PdfFontEmbedding.Always,
                PdfFontEmbedding.None
            };
            Editable = false;
        }

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public new string CommandName
        {
            get { return base.CommandName; }
            set { base.CommandName = value; }
        }

        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public new System.Windows.Forms.ComboBox.ObjectCollection Items
        {
            get { return base.Items; }
        }

        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public new object SelectedItem
        {
            get { return base.SelectedItem; }
            set { base.SelectedItem = value; }
        }

        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public new object SelectedValue
        {
            get { return base.SelectedValue; }
            set { base.SelectedValue = value; }
        }

        ///<summary>
        ///Gets or sets the data source for this combo box.
        ///</summary>
        ///
        ///<returns>
        ///An object that implements the <see cref="T:System.Collections.IList"></see> or <see cref="T:System.ComponentModel.IListSource"></see> interfaces, such as a <see cref="T:System.Data.DataSet"></see> or an <see cref="T:System.Array"></see>. The default value is null.
        ///</returns>
        ///
        ///<exception cref="T:System.ArgumentException">The assigned value does not implement the <see cref="T:System.Collections.IList"></see> or <see cref="T:System.ComponentModel.IListSource"></see> interfaces.</exception><filterpriority>1</filterpriority>
        [Browsable(false)]
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
        public new object DataSource
        {
            get { return base.DataSource; }
            set
            {
                base.DataSource = value;
            }
        }
    }
}
